﻿using DDit.Component.Tools.weixin;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DDit.Core.Data.Entity.CoreEntity
{
    public class UserGroup : BaseEntity
    {
        /// <summary>
        /// 标签id，由微信分配
        /// </summary>
        public int id { set; get; }
        /// <summary>
        /// 标签名，UTF8编码
        /// </summary>
        public string name { set; get; }
        /// <summary>
        /// 此标签下粉丝数
        /// </summary>
        public int count { set; get; }

        public static UserGroup Convert(WxGroup item)
        {
            UserGroup newitem = new UserGroup();
            newitem.id = item.id;
            newitem.name = item.name;
            newitem.count = item.count;

            return newitem;
        }
    }
}
